<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateStoreServiceFeedbackTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('store_service_feedback', function (Blueprint $table) {
            $table->id()->comment('客服反馈表');
            $table->integer('user_id')->comment('用户ID')->index();
            $table->integer('mer_id')->comment('商户id')->index();
            $table->string('name')->comment('姓名');
            $table->text('content')->comment('反馈内容');
            $table->string('make')->comment('备注');
            $table->char('phone',20)->comment('电话');
            $table->tinyInteger('status')->default(0)->comment('状态0=未查看，1=已查看');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('store_service_feedback');
    }
}
